LM SET MODE

This command sets the method the light mapper uses to colour pixels, in particular those that go beyond the edge of a polygon when the texture is applied to an object.

  Syntax
LM Set Mode Mode 

  Parameters

Mode
The method the light mapper will use to colour the pixels, 0-3.

  Returns

This command does not return a value.

  Description

Mode 1 calculates all pixels normally no matter where they end up in the final scene. This can cause light bleeding through thin walls where there is a bright light on one side and darkness on the other. A high blur radius can make this more apparent. Mode 2 only calculates the light for pixels that are assigned to polygons, those which are not take on the colour of the closest valid point instead. This can prevent light bleeding but can prevent smooth blending across adjacent polygons where one is in shadow and the other is in light. Mode 0 combines both of the above modes (and is default) and lets the light mapper choose the mode it thinks is best based on the situation. Mode 3 is a special mode in that it ignores all lights in the scene and instead colours pixels based on the normal of the current point. This can be used to check that normals are smoothed where you want and that there are enough pixels to display a smooth transition on curved surfaces. Increasing the quality provides better results for curved surfaces.